package cn.hss.object.dt;

/**
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 17:24
 * @Package 包名：cn.hss.object.dt
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class OrderTest {
	public static void main(String[] args) {
		Order o1=new Order(1001, "小米手机");
		Order o2=new Order(1001, "小米手机");
		System.out.println(o1.equals(o2));//true
		Order o3=new Order(1002,
				new String("华为"));
		Order o4=new Order(1002,
				new String("华为"));
		System.out.println(o3.equals(o4));//true
		System.out.println(o1);
	}
}
